package com.yin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yin.entity.UserEntity;
import com.yin.service.UserService;

/**
*@author LSY
*Time: 2018年12月28日上午10:05:25
*
*
*/
@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	private UserService userService;
	@GetMapping(value = "/register")
	public String register(UserEntity userEntity) {
		userService.register(userEntity);
		return "success";
	}
	
}
